/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

/**
 *
 * @author Đức Trung
 */


import java.awt.*;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
import javax.swing.*;
import java.util.List;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.TableModel;
public class CustomerPanel extends JPanel {

    /**
     * Creates new form CustomerPanel
     */
    JTable table;
    public CustomerPanel() {
        initComponents();
       
    }
                        
    private void initComponents() {
    
       // add(new JLabel("This is CustomerPanel"));
        
        this.setLayout(new FlowLayout());
        table= new JTable();
        table.setModel(new model.CustomerModel() );
        table.setPreferredScrollableViewportSize(new Dimension(500,70));
        table.setFillsViewportHeight(true);
        JScrollPane j= new JScrollPane(table);
        add(j);       
    }                      
                     
}

